<header>
    <div class="header2">
        <section>
            <h1><a href="/"><?= get_bloginfo('name'); ?></a></h1>
            <img src="<?= blockPath('/imgs/menu.svg') ?>">
        </section>

        <nav class="grid">
            <?php foreach (
                get_categories(array(
                    'taxonomy'   => 'category',
                    'hide_empty' => false, // Include empty categories
                    'orderby'    => 'name',
                    'order'      => 'ASC',
                )) as $vo
            ): ?>
                <?php if (intval($vo->parent) == 0): ?>
                    <a href="/category/<?= $vo->slug ?>"><?= $vo->name ?></a>
                <?php endif; ?>
            <?php endforeach; ?>
        </nav>
    </div>
</header>

<style>
    header{
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, .8);
    }
    div.header2 {
        display: grid;
        grid-template-rows: 4rem;
    }

    div.header2>section {
        display: flex;
        justify-content: end;
        justify-items: end;
        align-items: center;
        gap: var(--gap);
    }
    div.header2>section > h1 > a{
        color:var(--color-primary);
    }

    div.header2>section>img {
        height: 3rem;
        width: 3rem;
        display: none;
    }

    div.header2>nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: end;
    }

    div.header2>nav>a {
        padding: var(--gap);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
        transition: var(--transition);
        background-color: var(--color-primary);
    }
</style>